package com.eric.domain.po;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author 新哥
 * @since 2024-03-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")

public class SysUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    //    为什么要用loginnamev和passwordv，是为了在前端用form-data时，会有隐藏的同名字loginname和
    //    password，是的传到后端时，字符串会自动在后面加一个,这是一个巨大的坑
    @TableField("loginName")
    private String loginName;

    @TableField("password")
    private String password;

    @TableField("profilephoto")
    private String profilephoto;


    @TableField("realName")
    private String realName;


    @TableField("phone")
    private String phone;


    @TableField("email")
    private String email;


    @TableField("version")
    @Version
    private Integer version;


    @TableField("deleted")
    @TableLogic
    private Integer deleted;


    @TableField("status")
    private Integer status;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;


    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @TableField("create_by")
    private String createBy;

    @TableField("last_update_by")
    private String lastUpdateBy;


}
